#include "f_icon.h"

/*
 * A 8x8 pixel icon font.  The bits are read across from top left to top right, then down
 * to the next line.  Each character is represented by 8 8bit unsigned integers.
 */
static uint8_t font_data_icon[] PROGMEM = {
	0x60, 0x80, 0x54, 0x34, 0x34, 0xdc, 0x00, 0x00,	//A, Sunday				(0x00)
	0xa0, 0xe0, 0xe8, 0xb4, 0xb4, 0xa8, 0x00, 0x00,	//B, Monday				(0x01)
	0xe0, 0x40, 0x54, 0x54, 0x54, 0x4c, 0x00, 0x00,	//C, Tuesday			(0x02)
	0xa0, 0xa0, 0xa8, 0xf4, 0xf8, 0xac, 0x00, 0x00,	//D, Wednesday			(0x03)
	0xe0, 0x50, 0x50, 0x58, 0x54, 0x54, 0x00, 0x00,	//E, Thursday			(0x04)
	0xe0, 0x80, 0xd8, 0x94, 0x90, 0x90, 0x00, 0x00,	//F, Friday				(0x05)
	0x60, 0x80, 0x44, 0x3c, 0x34, 0xdc, 0x00, 0x00,	//G, Saturday			(0x06)
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc,	//H, Weekday underline	(0x07)
	0x18, 0x3c, 0x3c, 0x3c, 0x7e, 0x7e, 0xff, 0x18,	//I, Alarm bell			(0x08)
	0x3c, 0x42, 0x89, 0x91, 0x89, 0x85, 0x42, 0x3c,	//J, Clock				(0x09)
	0x02, 0x03, 0x22, 0x22, 0x2c, 0x2c, 0xc0, 0xc0,	//K, Music On			(0x0A)
	0x82, 0x43, 0x22, 0x32, 0x2c, 0x2c, 0xc2, 0xc1,	//L, Music Off			(0x0B)
	0x24, 0x00, 0x99, 0x3c, 0x3c, 0x99, 0x00, 0x24,	//M, Lamp On			(0x0C)
	0x80, 0x40, 0x18, 0x24, 0x24, 0x18, 0x02, 0x01,	//N, Lamp Off			(0x0D)
	0x10, 0x38, 0x7c, 0xd6, 0x10, 0x10, 0x10, 0x10, //O, Arrow Upload		(0x0E)
	0x70, 0x4f, 0xe1, 0x9d, 0x85, 0x87, 0x84, 0xfc,	//P, Folders			(0x0F)
	0x0e, 0x39, 0xe5, 0x95, 0x95, 0x97, 0x9c, 0xf0,	//Q, Files				(0x10)
	0x03, 0x06, 0x0c, 0x88, 0xd8, 0x50, 0x70, 0x20,	//R, Checkmark			(0x11)
	0xc3, 0x66, 0x3c, 0x18, 0x3c, 0x66, 0xc3, 0x81,	//S, Cross				(0x12)
	0x00, 0x60, 0xf0, 0x3f, 0x3f, 0xf0, 0x60, 0x00	//T, Wrench				(0x13)

};

static uint8_t font_widths_icon[1];

uint8_t codepage_icon[] PROGMEM = {
//	0    1    2    3    4    5    6    7    8    9    A    B    C    D    E    F
	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, //0x00-0x0F
	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, //0x10-0x1F
	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, //0x20-0x2F
	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, //0x30-0x3F
	0xFF,0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E, //0x40-0x4F
	0x0F,0x10,0x11,0x12,0x13,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, //0x50-0x5F
	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, //0x60-0x6F
	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF  //0x70-0x7F
};

font_t font_icon = {
	font_data_icon,
	font_widths_icon,
	codepage_icon,
	8,
	8,
	FONT_FIXED_WIDTH
};
